<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\common\model\Ann;
use app\common\model\Banner;
use app\common\model\Contact as ModelContact;

/**
 * 联系我们接口
 */
class Contact extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * @Author LK
     * @ApiTitle (联系我们)
     * @ApiMethod (GET)
     * @ApiReturnParams (name="code", type="integer", required=true, description="")
     * @ApiReturn ({'code':1,'msg':'返回成功'})
     */
    public function index()
    {
        $data = ModelContact::get(1);
        $this->success('请求成功', $data);
    }
}
